Removed generation of double Optionals for properties of Input type#9
Removed generation of double Optionals for properties of Input type#9MarioBajr wants to merge 1 commit intoamazon-archives:masterfrom EFEducationFirstMobile:fixes/removedDoubleOptionals
Conversation
|
Thanks @MarioBajr , I will discuss with the team about the change and update you with the decision. |
|
Hello @MarioBajr We will be retiring this repo soon as the new [AWS Amplify CLI](url Could you look to see if the new AWS Amplify CLI flow resolves your issue and if not open something in that repo? |
|
Hi @muellerfr, Is the new codegen feature that you guys are planning to use available anywhere else? |
|
Hi @MarioBajr, we will merge this change into the https://github.com/aws-amplify/amplify-cli repo, where this code now lives. |
For objects of type
Input, the Swift code generation is creating unnecessary layers of Optionality for allOptionalproperties.Given this GraphQL input type
The code generated has two layers of Optionality. eg:
Optional<String?>This PR replaces to a single Optionality level, aligning with all other generated types.